package com.yunjian.core.basic.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunjian.core.basic.mapper.SRoleResourceMapper;
import com.yunjian.core.basic.model.SRoleResourceExample;
import com.yunjian.core.basic.model.SRoleResourceKey;
import com.yunjian.core.basic.service.SRoleResourceService;

@Service
public class SRoleResourceServiceImpl implements SRoleResourceService{
	
	//private final static Logger logger = LoggerFactory.getLogger(SRoleResourceServiceImpl.class);
	
	@Autowired
	private SRoleResourceMapper mapper;

	@Override
	public int countByExample(SRoleResourceExample example) {
		return mapper.countByExample(example);
	}

	@Override
	public int deleteByExample(SRoleResourceExample example) {
		return mapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(SRoleResourceKey key) {
		return mapper.deleteByPrimaryKey(key);
	}

	@Override
	public int insert(SRoleResourceKey record) {
		return mapper.insert(record);
	}

	@Override
	public int insertSelective(SRoleResourceKey record) {
		return mapper.insertSelective(record);
	}

	@Override
	public List<SRoleResourceKey> selectByExample(SRoleResourceExample example) {
		return mapper.selectByExample(example);
	}

	@Override
	public int updateByExampleSelective(SRoleResourceKey record,
			SRoleResourceExample example) {
		return mapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SRoleResourceKey record, SRoleResourceExample example) {
		return 0;
	}


	
}
